package com.study.experiment08.clazz;

public class Chinese implements Human {
    private int age;
    private Language lan;

    public Chinese() {
    }

    ;

    public Chinese(Language lan, int age) {
        this.lan = lan;
        this.age = age;
    }

    @Override
    public void speak() {
        System.out.println(lan.kind() + "\nage=" + age);
    }

    public void setLan(Language lan) {
        this.lan = lan;
    }

}


